package cn.ibdsr.human.constant;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/2 13:31
 */
public  enum IsDeleted {
    NORMAL(0, "正常"),
    DELETED(1, "删除");

    int code;
    String message;

    private IsDeleted(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static String valueOf(Integer value) {
        if (value == null) {
            return "";
        } else {
            IsDeleted[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                IsDeleted ms = var1[var3];
                if (ms.getCode() == value) {
                    return ms.getMessage();
                }
            }

            return "";
        }
    }
}
